//
//  HSYNewShopRequest.m
//  HSY
//
//  Created by 陈浩 on 2017/4/17.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "HSYNewShopRequest.h"

@implementation HSYNewShopRequest

- (NSString *)serviceCode{
    return API_SERVICE_CODE_NEW_SHOP;
}

- (NSDictionary *)requestData{
    
    NSAssert(self.uid.length > 0, @"uid不能为空");
    NSAssert(self.shortName.length > 0, @"shortName不能为空");
    NSAssert(self.districtCode.length > 0, @"districtCode不能为空");
    NSAssert(self.address.length > 0, @"address不能为空");

    NSMutableDictionary *params = [@{} mutableCopy];
    params[@"uid"] = self.uid;
    params[@"shortName"] = self.shortName;
    params[@"districtCode"] = self.districtCode;
    params[@"address"] = self.address;
    if (self.cellphone.length > 0) {
        params[@"contactCellphone"] = self.cellphone;
    }

    return params;
}

@end
